<template>
  <div>
   <h2>App组件</h2>
   <my-dialog>
    <template v-slot:title ='{uname,age}' >
     添加学员{{uname}} {{age}}
    </template>
    <template #content>
       <form action="">
      姓名：<input type="text"><br>
      年龄：<input type="text">
    </form>
    </template>
     <button>确认添加</button>
   </my-dialog>

   <my-dialog>
    <h3>提示消息</h3>
    <p>确认码</p>
    <button>添加</button>
   </my-dialog>
  </div>
</template>

<script>
import MyDialog from './components/MyDialog.vue'


export default {
  components: { MyDialog },
  data () {
    return {
  
    }
  },
 
 
}

</script>

<style>

</style>